<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>

    <title>Chase Lee</title>
    
    <meta http-equiv="content-type" content="text/html;charset=utf-8" />
    
    <link rel='stylesheet' href='/assets/styles.css' type='text/css' />
		  
    <link rel="shortcut icon" href="/assets/favicon.ico" type="image/x-icon" />
    	
    <script type="text/javascript" src="/assets/ckeditor/ckeditor.js"></script>
    
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>

    <script type="text/javascript" src="/assets/js/jquery-1.2.6.min.js"></script>
	
	<script type="text/javascript" src="/assets/js/spamspan.js"></script>
    
</head>

<body>
	{% block adminbar %}
	{% endblock %}
    <div id='header'>
        <h1 id='title'><a href='/' title='Home' accesskey="1">Chase Lee</a></h1>
        <h4 id='tagline'></h4>
        <ul id="nav">
    	{% for link in pages %}
    	  <li><a href="/{{link.Title|lower}}">{{link.Title}}</a></li>
    	{% endfor %}
    	{% if username %}
          <li><a href="/logout">Logout ({{username}})</a></li>
          <li><a href="/chat">Chat</a></li>
        {% else %}
          <li><a href="/login"
              {% ifequal path '/login' %}
                    class="selected"
              {% endifequal %}
            >Login</a></li>
        {% endif %}
        </ul>
    </div>

    <div id='content'>
    {% block bodycontent %}
    {% endblock %}
    </div>
        
    <div id='footer'>
       <p>&copy; 2011 Chase Lee</p>
       <p>Check out the nice <a href="http://validator.w3.org/check/referer" title="Valid XHTML">XHTML</a> &amp; <a href="http://jigsaw.w3.org/css-validator/validator?profile=css2&amp;warning=2&amp;uri=http://chase-lee.appspot.com/assets/styles.css" title="Valid CSS">CSS</a>.</p>
	   <p>Powered by <a href="http://code.google.com/p/jugo" title="The project page of jugo, a simple CMS on App Engine">jugo</a>.</p>
    </div>
    
    <script type="text/javascript">
     $(function(){
       var path = location.pathname.substring(1);
       if ( path )
         $('#nav a[href$="' + path + '"]').attr('class', 'selected');
      });
     </script>
    
</body>

</html>